﻿using mozhi.smarterp.Finance.Accounts;
using System;
using System.Collections.Generic;
using System.Text;

namespace mozhi.smarterp.Finance.Basedatas.Events
{
    public class DataAssociationAddEvent
    {
        public Guid? Id { set; get; }

        /// <summary>
        /// 占有者
        /// </summary>
        public Guid OccupantId { set; get; }

        /// <summary>
        /// 占有者类型
        /// </summary>
        public string OccupantType { set; get; }

        /// <summary>
        /// 占有者类型名称
        /// </summary>
        public string OccupantTypeName { set; get; }

        /// <summary>
        /// 占有者编码
        /// </summary>
        public string OccupantCode { set; get; }

        /// <summary>
        /// 占有者名称
        /// </summary>
        public string OccupantName { set; get; }

        /// <summary>
        /// 被占有者
        /// </summary>
        public Guid OccupiedId { set; get; }


        /// <summary>
        /// 被占有者类型
        /// </summary>
        public string OccupiedType { set; get; }

        public DataAssociationAddEvent() { }

        public DataAssociationAddEvent(Guid occupantId, string occupantType, string occupantTypeName, string occupantCode, string occupantName,
            Guid occupiedId, string occupiedType)
        {
            OccupantId = occupantId;
            OccupantType = occupantType;
            OccupantTypeName = occupantTypeName;
            OccupantCode = occupantCode;
            OccupantName = occupantName;
            OccupiedId = occupiedId;
            OccupiedType = occupiedType;
        }
    }
}
